package com.jiangjiang.eshop.logistics.convert;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jiangjiang.eshop.logistics.domain.FreightTemplateEntity;
import com.jiangjiang.eshop.logistics.dto.FreightTemplateDTO;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * @Author Jianghaowen
 * @Date 2021/9/15
 * @Description: TODO
 * @Version V1.0
 **/
@Mapper(componentModel = "spring")
public interface LogisticsFreightTemplateConvert {

     Page<FreightTemplateDTO> convertPage2DTOList(Page<FreightTemplateEntity> entities);

    FreightTemplateDTO convertEntity2DTO(FreightTemplateEntity entity);

    FreightTemplateEntity convertDTO2Entity(FreightTemplateDTO entity);
}
